package com.ruoyi.fee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fee.mapper.PropertyFeeTypeMapper;
import com.ruoyi.fee.domain.PropertyFeeType;
import com.ruoyi.fee.service.IPropertyFeeTypeService;

/**
 * 费用类型配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyFeeTypeServiceImpl implements IPropertyFeeTypeService 
{
    @Autowired
    private PropertyFeeTypeMapper propertyFeeTypeMapper;

    /**
     * 查询费用类型配置
     * 
     * @param typeId 费用类型配置主键
     * @return 费用类型配置
     */
    @Override
    public PropertyFeeType selectPropertyFeeTypeByTypeId(Long typeId)
    {
        return propertyFeeTypeMapper.selectPropertyFeeTypeByTypeId(typeId);
    }

    /**
     * 查询费用类型配置列表
     * 
     * @param propertyFeeType 费用类型配置
     * @return 费用类型配置
     */
    @Override
    public List<PropertyFeeType> selectPropertyFeeTypeList(PropertyFeeType propertyFeeType)
    {
        return propertyFeeTypeMapper.selectPropertyFeeTypeList(propertyFeeType);
    }

    /**
     * 新增费用类型配置
     * 
     * @param propertyFeeType 费用类型配置
     * @return 结果
     */
    @Override
    public int insertPropertyFeeType(PropertyFeeType propertyFeeType)
    {
        return propertyFeeTypeMapper.insertPropertyFeeType(propertyFeeType);
    }

    /**
     * 修改费用类型配置
     * 
     * @param propertyFeeType 费用类型配置
     * @return 结果
     */
    @Override
    public int updatePropertyFeeType(PropertyFeeType propertyFeeType)
    {
        return propertyFeeTypeMapper.updatePropertyFeeType(propertyFeeType);
    }

    /**
     * 批量删除费用类型配置
     * 
     * @param typeIds 需要删除的费用类型配置主键
     * @return 结果
     */
    @Override
    public int deletePropertyFeeTypeByTypeIds(Long[] typeIds)
    {
        return propertyFeeTypeMapper.deletePropertyFeeTypeByTypeIds(typeIds);
    }

    /**
     * 删除费用类型配置信息
     * 
     * @param typeId 费用类型配置主键
     * @return 结果
     */
    @Override
    public int deletePropertyFeeTypeByTypeId(Long typeId)
    {
        return propertyFeeTypeMapper.deletePropertyFeeTypeByTypeId(typeId);
    }
}
